#include<cmath>
#include <iomanip>
#include <iostream>
using namespace std;
void ans(double x_1,double y_1,double x_2,double y_2,double x_3,double y_3) {
	double a = sqrt(pow(x_1-x_2,2)+pow(y_1-y_2,2));
	double b = sqrt(pow(x_3-x_2,2)+pow(y_3-y_2,2));
	double c = sqrt(pow(x_1-x_3,2)+pow(y_1-y_3,2));
	double l = (a + b + c)/2;
	double area = sqrt(l*(l-a)*(l-b)*(l-c));
	cout<<"L = "<<fixed<<setprecision(2)<<l*2<<", A = "<<fixed<<setprecision(2)<<area<<endl;

}
int main() {
	const double jingDu = 0.00000001;
	double x_1,y_1,x_2,y_2,x_3,y_3;
	cin>>x_1>>y_1>>x_2>>y_2>>x_3>>y_3;
	if(x_1 == x_2 && y_1 == y_2 || x_1 == x_3 && y_1 == y_3 || x_3 == x_2 && y_3 == y_2) cout<<"Impossible"<<endl;
	else if(y_1 == 0 || y_2 == 0 || y_3 == 0) {
		if(y_1 == 0 && y_2 == 0 && y_3 == 0 ) cout<<"Impossible"<<endl;
		else ans(x_1,y_1,x_2,y_2,x_3,y_3);
	} else if(abs(x_1/y_1 - x_2/y_2) <= jingDu && abs(x_3/y_3 - x_2/y_2) <= jingDu) cout<<"Impossible"<<endl;
	else {
		ans(x_1,y_1,x_2,y_2,x_3,y_3);
	}
	return 0;
}
